# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models


# Create your models here.

# class UploadFile(models.Model):
#     FILE_TYPE = (
#         (0, u'Image'),
#         (1, u'File'),
#     )
#     name = models.CharField(verbose_name='文件名', max_length=30)
#     desc = models.CharField(verbose_name='文件备注', max_length=100, null=True, blank=True)
#     url = models.CharField(verbose_name='url地址', max_length=500, null=True, blank=True)
#     path = models.CharField(verbose_name='文件路径', max_length=500, null=True, blank=True)
#     type = models.IntegerField(verbose_name='文件类别', choices=FILE_TYPE, default=FILE_TYPE[0])
#     status = models.BooleanField(verbose_name='状态', default=True)
#     create_date = models.DateTimeField(verbose_name='创建时间', auto_now_add=True)
#     update_date = models.DateTimeField(verbose_name='修改时间', auto_now=True)
#
#     class Meta:
#         db_table = 't_sys_uploadfile'
#         verbose_name = "上传文件"
#         verbose_name_plural = "上传文件"
#
#     def __str__(self):
#         return self.name


